import { Loading } from "element-ui";

let utils = {};

//判断是否安装了控件
utils.isInstallPrintSoftware = function (path) {
  let loadingInstance = Loading.service({
    target: ".middleContainer",
    lock: true,
    background: "rgba(255, 255, 255, 0.5)",
  });
  let win = window.open(path, "_blank");
  setTimeout(() => {
    win.close();
  }, 2000);
  loadingInstance.close();
};
export default utils;
